// 发薪订单配置
export const PARAMS_SALARY = [
    {
        type: "DatePicker",
        field: "period",
        title: "选择月份",
        value: "",
        props: {
            type: "month",
            format: "YYYY-MM",
            placeholder: "请选择"
        }
    },
    {
        type: "select",
        field: "settleStatus",
        title: "结算状态",
        options: [{ label: '待提交', value: '0' }, { label: '待审核', value: '1' }, { label: '结算中', value: '2' },{ label: '结算成功', value: '3' }, { label: '部分结算成功', value: '4' }, { label: '结算失败', value: '5' }, { label: '已驳回',value: '6'}],
        props: { placeholder: "请选择" }
    },
    {
        type: "a-input",
        field: "orderId",
        title: "订单编号",
        value: "",
        props: { placeholder: "请输入" }
    },
    {
        type: "a-input",
        field: "orderName",
        title: "订单名称",
        value: "",
        props: { placeholder: "请输入" }
    },
    {
      type:'a-button',
      field:'search',
      props:{
          type:'primary',
          icon:"search"
      },
      children:['搜索'],
      emit: ['click'],
      emitPrefix: 'btn-search',
    },
    {
      type:'a-button',
      field:'reset',
      props:{
          type:'primary',
          icon:"setting"
      },
      children:['重置'],
      emit: ['click'],
      emitPrefix: 'btn-reset',
    },
]
export const PARAMS_SALARYBILL = [
    {
        type: "DatePicker",
        field: "period",
        title: "选择月份",
        value: "",
        props: {
            type: "month",
            format: "YYYY-MM",
            placeholder: "请选择"
        }
    },
    {
        type: "select",
        field: "settleStatus",
        title: "结算状态",
        value: "-1",
        options: [{ label: '全部', value: '-1' },{ label: '待审核', value: '1' }, { label: '结算中', value: '2' },{ label: '结算成功', value: '3' }, { label: '部分结算成功', value: '4' }, { label: '结算失败', value: '5' }, { label: '已驳回',value: '6'}],
        props: { placeholder: "请选择" }
    },
    {
        type: "a-input",
        field: "orderId",
        title: "订单编号",
        value: "",
        props: { placeholder: "请输入" }
    },
    {
        type: "a-input",
        field: "orderName",
        title: "订单名称",
        value: "",
        props: { placeholder: "请输入" }
    },
    {
      type:'a-button',
      field:'search',
      props:{
          type:'primary',
          icon:"search"
      },
      children:['搜索'],
      emit: ['click'],
      emitPrefix: 'btn-search',
    },
    {
      type:'a-button',
      field:'reset',
      props:{
          type:'primary',
          icon:"setting"
      },
      children:['重置'],
      emit: ['click'],
      emitPrefix: 'btn-reset',
    },
]
// 企业发薪订单配置
export const COLUMNS_SENDSALARY = [
    {
        title: '订单编号',
        dataIndex: 'orderId',
    },
    {
        title: '订单名称',
        dataIndex: 'orderName'
    },
    {
        title: '订单周期',
        dataIndex: 'period',
    },
    {
        title: '订单企业',
        dataIndex: 'enterpriseName',
    },
    {
        title: '企业账户',
        dataIndex: 'enterpriseAccount',
    },
    {
        title: '服务商',
        dataIndex: 'parkName',
    },
    {
        title: '合作类型',
        dataIndex: 'cooperationName',
    },
    {
        title: '订单类型',
        dataIndex: 'isOnline',
        customRender: (text, row, index) => {
            if (text == 1) {
                return '线下'
            } else if (text == 2) {
                return '线上'
            }
            return ''
        },
    },
    {
        title: '订单人数',
        dataIndex: 'settleNum',
    },
    {
        title: '订单金额',
        dataIndex: 'settleAmount',
    },
    {
        title: '服务费计算方式',
        dataIndex: 'feeWay',
        customRender: (text, row, index) => {
            if (text == 1) {
                return '按人数'
            } else if (text == 2) {
                return '按系数'
            }
            return ''
        },
    },
    {
        title: '费率',
        dataIndex: 'feeValue'
    },
    {
        title: '服务费',
        dataIndex: 'parkServiceAmount',
    },
    {
        title: '服务费补退',
        dataIndex: 'serviceAmoutBackfill',
    },
    {
        title: '创建人员',
        dataIndex: 'createdByName',
    },
    {
        title: '创建时间',
        dataIndex: 'createdTime',
    },
    {
        title: '结算时间',
        dataIndex: 'settleTimeSubmit',
    },
    {
        title: '委托供应商',
        dataIndex: 'isEntrust',
        customRender: (text, row, index) => {
            if (text == 1) {
                return '是'
            } else if (text == 2) {
                return '否'
            }
            return ''
        },
    },
    {
        title: '结算状态',
        dataIndex: 'settleStatus',
        customRender: (text) => {
            if (text == 0) {
                return '待提交'
            } else if (text == 1) {
                return '待审核'
            } else if (text == 2) {
                return '结算中'
            } else if (text == 3) {
                return '结算成功'
            } else if (text == 4) {
                return '部分结算成功'
            } else if (text == 5) {
                return '结算失败'
            } else if (text == 6) {
                return '已驳回'
            }
            return ''
        }
    },
    {
        title: '操作',
        dataIndex: 'action',
        fixed: 'right',
        width: "200px",
        scopedSlots: { customRender: 'action' }
    },
]
// // 企业发薪订单配置
// export const COLUMNS_SALARY = [
//     {
//         title: '订单编号',
//         dataIndex: 'name',
//     },
//     {
//         title: '订单名称',
//         dataIndex: 'orgNames'
//     },
//     {
//         title: '订单周期',
//         dataIndex: 'position',
//     },
//     {
//         title: '订单企业',
//         dataIndex: 'groupName',
//     },
//     {
//         title: '企业账户',
//         dataIndex: 'idCardType',
//     },
//     {
//         title: '操作',
//         dataIndex: 'action',
//         scopedSlots: { customRender: 'action' }
//     },
// ]

// 企业发薪明细配置
export const PARAMS_SALARY_DETAIL = [
    {
        type: "a-input",
        field: "userName",
        title: "姓名",
        value: "",
        props: { placeholder: "请输入" }
    },
    {
      type:'a-button',
      field:'search',
      props:{
          type:'primary',
          icon:"search"
      },
      children:['搜索'],
      emit: ['click'],
      emitPrefix: 'btn-search',
    },
    {
      type:'a-button',
      field:'reset',
      props:{
          type:'primary',
          icon:"setting"
      },
      children:['重置'],
      emit: ['click'],
      emitPrefix: 'btn-reset',
    },
]
// 企业发薪补缴配置
export const PARAMS_SALARY_PAY = [
    {
        type: "a-input",
        field: "userName",
        title: "姓名",
        value: "",
        props: { placeholder: "请输入" }
    },
    {
      type:'a-button',
      field:'search',
      props:{
          type:'primary',
          icon:"search"
      },
      children:['搜索'],
      emit: ['click'],
      emitPrefix: 'btn-search',
    },
    {
      type:'a-button',
      field:'reset',
      props:{
          type:'primary',
          icon:"setting"
      },
      children:['重置'],
      emit: ['click'],
      emitPrefix: 'btn-reset',
    },
]
// 企业服务费补收
export const PARAMS_SERVICE_GET = [
    {
        type: "a-input",
        field: "backfillId",
        title: "补收编号",
        value: "",
        props: { placeholder: "请输入" }
    },
    {
        type: "a-input",
        field: "orderId",
        title: "订单编号",
        value: "",
        props: { placeholder: "请输入" }
    },
    {
        type: "a-input",
        field: "orderName",
        title: "订单名称",
        value: "",
        props: { placeholder: "请输入" }
    },
    {
        type: "DatePicker",
        field: "period",
        title: "订单周期",
        value: "",
        props: {
            type: "month",
            format: "YYYY-MM",
            placeholder: "请选择"
        }
    },
    {
      type:'a-button',
      field:'search',
      props:{
          type:'primary',
          icon:"search"
      },
      children:['搜索'],
      emit: ['click'],
      emitPrefix: 'btn-search',
    },
    {
      type:'a-button',
      field:'reset',
      props:{
          type:'primary',
          icon:"setting"
      },
      children:['重置'],
      emit: ['click'],
      emitPrefix: 'btn-reset',
    },
]
export const COLUMNS_SERVICE_GET = [
    {
        title: '补收编号',
        dataIndex: 'backfillId',
    },
    {
        title: '订单编号',
        dataIndex: 'orderId',
    },
    {
        title: '订单名称',
        dataIndex: 'orderName'
    },
    {
        title: '订单周期',
        dataIndex: 'period',
    },
    {
        title: '订单企业',
        dataIndex: 'enterpriseName',
    },
    {
        title: '订单人数',
        dataIndex: 'settleNum',
    },
    {
        title: '订单金额',
        dataIndex: 'settleAmount',
    },
    {
        title: '服务费补收',
        dataIndex: 'serviceAmountBackFill'
    },
    {
        title: '操作人',
        dataIndex: 'createdByName',
    },
    {
        title: '创建时间',
        dataIndex: 'createdTime',
    },
    {
        title: '结算状态',
        dataIndex: 'status',
        customRender: (text) => {
            if (text == 0) {
                return '待审核'
            } else if (text == 1) {
                return '已审核'
            } else if (text == 2) {
                return '已撤销'
            }
            return ''
        }
    },
    {
        title: '操作',
        dataIndex: 'action',
        scopedSlots: { customRender: 'action' }
    },
]
// 专项附加
export const COLUMNS_SPECIALADD = [
    {
        title: '员工姓名',
        dataIndex: 'userName',
    },
    {
        title: '身份证号',
        dataIndex: 'idCard',
    },
    {
        title: '周期',
        dataIndex: 'period',
    },
    {
        title: '子女教育',
        dataIndex: 'childEduAmount'
    },
    {
        title: '住房租金',
        dataIndex: 'housingRentAmount',
    },
    {
        title: '住房贷款利息',
        dataIndex: 'interestAmount',
    },
    {
        title: '赡养老人',
        dataIndex: 'elderlyAmount'
    },
    {
        title: '赡养老人',
        dataIndex: 'continuEdu'
    },
    {
        title: '个人养老金',
        dataIndex: 'pension'
    },
    {
        title: '婴儿抚养',
        dataIndex: 'rearing'
    },
    {
        title: '操作',
        dataIndex: 'action',
        scopedSlots: { customRender: 'action' }
    },
]